package com.cloudsigns.factorymanager2.produce.fragment;

import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ListView;
import android.widget.TextView;

import com.cloudsigns.factorymanager2.R;
import com.cloudsigns.factorymanager2.produce.adapter.ProduceEndHandoverAdapter;

public class ProduceEndHandoverFragment extends Fragment implements View.OnClickListener{
    private TextView tv_workpart_name, tv_dispatch_num, tv_handover_num;
    private ListView listview;
    private Button btn_completed;

    private ProduceEndHandoverAdapter adapter;

    // listview item 点击跳转界面 ProduceEndHandoverAcceptanceActivity1

    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_produce_end_handover, null);
        tv_workpart_name = view.findViewById(R.id.tv_workpart_name);
        tv_dispatch_num = view.findViewById(R.id.tv_dispatch_num);
        tv_handover_num = view.findViewById(R.id.tv_handover_num);
        listview = view.findViewById(R.id.listview);
        btn_completed=view.findViewById(R.id.btn_completed);

        adapter=new ProduceEndHandoverAdapter(getActivity());

        btn_completed.setOnClickListener(this);

        return view;
    }

    @Override
    public void onClick(View view) {
        switch (view.getId()){
            // 交接完结
            case R.id.btn_completed:
                break;
        }
    }
}
